import 'package:flutter/material.dart';

class StackCase extends StatelessWidget {
  const StackCase({super.key});

  

  @override
  Widget build(BuildContext context) {
    return Container(
      width: double.infinity,
      // height: double.infinity,  // 常见错误，父级没有高度，设置 100% 后反而是 0
      height: 500,
      alignment: Alignment.center,
      decoration: BoxDecoration(
        color: Color.fromARGB(255, 224, 224, 224),
        borderRadius: BorderRadius.circular(30),
      ),
      child: Stack(
        alignment: Alignment.center,
        clipBehavior: Clip.none,
        children: [
          Container(
            width: 200,
            height: 200,
            color: Color.fromARGB(255, 76, 224, 250),
          ),
          Positioned(
            top: -90,
            child: Image.asset('assets/open_eyes.png',width: 100,height: 100,),
        
          ),

        ],
      ),
    );
  }
}